<template>
  <view class="pay-con">
    <view>
      <text class="fs-24 col-9">收入总计</text>
      <text class="fs-36 col-3 fw-bold">{{
        isLogin ? data.totalRev : "---"
      }}</text>
    </view>
    <view></view>
    <view>
      <text class="fs-24 col-9">余额</text>
      <text class="fs-36 col-3 fw-bold">{{
        isLogin ? data.balance : "---"
      }}</text>
    </view>
    <view>
      <text class="fs-24 col-9">可提现</text>
      <text class="fs-36 col-3 fw-bold">{{
        isLogin ? data.withdrawable : "---"
      }}</text>
    </view>
  </view>
</template>

<script>
export default {
  props: ["payData", "isLogin"],
  data() {
    return {
      data: {},
    };
  },
  watch: {
    payData(newVal, oldVal) {
      this.data = newVal;
      // console.log('lllll=',newVal);
    },
  },
  mounted() {
    this.data = this.payData;
    // console.log(this.payData, this.isLogin);
  },
  methods: {},
};
</script>

<style>
</style>
